//
//  PicInfo.h
//  SinaWebo
//
//  Created by wwj on 16/6/30.
//  Copyright © 2016年 亦心. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSUInteger, PictureBadgeType) {
    PictureBadgeTypeNone = 0, ///< 正常图片
    PictureBadgeTypeLong,     ///< 长图
    PictureBadgeTypeGIF,      ///< GIF
};

@class PicMetadata;

@interface PicInfo : NSObject
@property (strong, nonatomic) PicMetadata *pic_big;
@property (strong, nonatomic) PicMetadata *pic_small;
@property (strong, nonatomic) PicMetadata *pic_middle;
@property (strong, nonatomic) PicMetadata *thumbnail;
/** 列表中的缩略图 */
@property (strong, nonatomic) PicMetadata *bmiddle;
/** 查看原图 */
@property (strong, nonatomic) PicMetadata *largest;
@property (strong, nonatomic) PicMetadata *middleplus;
@property (strong, nonatomic) PicMetadata *original;
/** 放大查看 */
@property (strong, nonatomic) PicMetadata *large;
@property (copy, nonatomic) NSString *object_id;
@property (copy, nonatomic) NSString *pic_id;
@property (copy, nonatomic) NSString *photo_tag;
@property (copy, nonatomic) NSString *pic_status;
@property (assign, nonatomic) PictureBadgeType badgeType;

@property (assign, nonatomic) CGFloat scalWith;
@property (assign, nonatomic) CGFloat scalHeight;
@property (assign, nonatomic) CGFloat progress;

+ (instancetype)picInfo:(NSDictionary *)dict;
@end
